$a = 12
$b = 5
$c = 17
$d = 2
$e = 3

def tab(i)
  ret = 0
  if (i==0) then
    ret = $a
  else 
    if (i==1) then
      ret = $b
    else
      if (i==2) then
        ret = $c
      else
        if (i==3) then
          ret = $d
        else
          if (i==4) then
            ret = $e
          end
        end
      end
    end
  end
  return ret
end

for j in 0 .. 4 do
  i = 0
  swap = 0
  while (i <= 3) do
    if (tab(i)>tab(i+1)) then
      if (i==0) then
        swap = $a;
        $a = $b;
        $b = swap;
      else 
        if (i==1) then
          swap = $b;
          $b = $c;
          $c = swap;
        else
          if(i==2) then
            swap = $c;
            $c = $d;
            $d = swap;
          else
            if(i==3) then
              swap = $d;
              $d = $e;
              $e = swap;
            end
          end
        end
      end
    end
    i = i+1;
  end
end

print($a)
print($b)
print($c)
print($d)
print($e)
